using System;

namespace WegasManagementSystem.Models
{
    /// <summary>
    /// 部门实体类
    /// </summary>
    public class Department
    {
        /// <summary>
        /// 部门ID
        /// </summary>
        public int DeptId { get; set; }

        /// <summary>
        /// 部门名称
        /// </summary>
        public string DeptName { get; set; }

        /// <summary>
        /// 部门编码
        /// </summary>
        public string DeptCode { get; set; }

        /// <summary>
        /// 部门编号
        /// </summary>
        public string DeptNumber
        {
            get { return DeptCode; }
            set { DeptCode = value; }
        }

        /// <summary>
        /// 上级部门ID
        /// </summary>
        public int? ParentId { get; set; }

        /// <summary>
        /// 部门负责人ID
        /// </summary>
        public int? ManagerId { get; set; }

        /// <summary>
        /// 创建时间
        /// </summary>
        public DateTime CreatedTime { get; set; }

        /// <summary>
        /// 更新时间
        /// </summary>
        public DateTime UpdatedTime { get; set; }

        /// <summary>
        /// 默认构造函数
        /// </summary>
        public Department()
        {
            CreatedTime = DateTime.Now;
            UpdatedTime = DateTime.Now;
        }
    }
} 